import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scanner=new Scanner(System.in);
        while(scanner.hasNext()){
            String number=scanner.nextLine();
            String result="";
            for(int i=0;i<number.length();i++){
                if(number.charAt(i)>='0'&&number.charAt(i)<='9'){
                    result+=number.charAt(i);
                }
            }
            System.out.println(result);
        }
    }
}
